package com.egao.orderB.service;

import com.egao.common.core.web.PageResult2;
import com.egao.common.core.web.JsonResult;
import com.egao.common.system.entity.User;
import com.egao.orderB.entity.Address;
import net.sf.json.JSONObject;
import org.apache.poi.ss.formula.functions.T;

import java.util.List;
import java.util.Map;

/**
 * 地址报价服务类
 * @author : Doman
 * @date : 2020-06-22 10:37:54
 * @version ：1.0
 */
public interface AddressService /*extends IService<Address>*/ {

    /**
     * 分页查询
     */
    //PageResult<Address> listPage(PageParam<Address> page);

    /**
     * 查询所有
     */
    //List<Address> listAll(Map<String, Object> page);

    /**
	 * 分页查询
	 * @param page
	 * @param address
	 * @return
	 */
	public JSONObject list(PageResult2<T> page, Address address, User loginUser) throws Exception;

	/**
	 * 获取list
	 * @param address
	 * @return
	 */
	public List<Address> list(Address address, User loginUser);

	/**
	 * 获取list
	 * @param address
	 * @return
	 */
	public List<Address> searchAddressFee(Address address, User loginUser);

	/**
	 * 获取list
	 * @param address
	 * @return
	 */
	public List<Address> dockList(Address address, User loginUser);

	/**
	 * 根据Id查询
	 * @param address
	 * @return
	 */
	public Address getById(Address address);

	/**
	 * 保存
	 * @param address
	 * @param loginUser
	 * @return
	 */
	public JsonResult save(Address address, User loginUser);

	/**
	 * 修改
	 * @param address
	 * @param loginUser
	 * @return
	 */
	public JsonResult update(Address address, User loginUser);

	/**
	 * 修改
	 * @param address
	 * @param loginUser
	 * @return
	 */
	public JsonResult customerUpdate(Address address, User loginUser);

	/**
	 * 修改
	 * @param address
	 * @param loginUser
	 * @return
	 */
	public JsonResult updatePrice(Address address, User loginUser);

	/**
	 * 修改
	 * @param address
	 * @param loginUser
	 * @return
	 */
	public JsonResult updateState(Address address, User loginUser);

	/**
	 * 删除
	 * @param address
	 * @param loginUser
	 * @return
	 */
	public JsonResult remove(Address address, User loginUser);
}
